import { httpGet, httpPost, httpDelete, httpPut } from '@/http'
import { services } from '@/config'

export const getPage = data => httpPost(`${services.personnelService}fyprojecttopic/page`, data)

export const save = data => httpPost(`${services.personnelService}fyprojecttopic`, data)

export const load = id => httpGet(`${services.personnelService}fyprojecttopic/${id}`)

export const create = () => httpGet(`${services.personnelService}fyprojecttopic/create`)

export const update = data => httpPut(`${services.personnelService}fyprojecttopic`, data)

export const batchDelete = ids => httpDelete(`${services.personnelService}fyprojecttopic/batchDelete`, ids, null, false)